module.exports = {
    //获取URL后缀参数
    getParamVal(type){
        var href = location.href, res = '';
        let startIndex = href.lastIndexOf(type);
        if(startIndex !== -1){
            startIndex = href.indexOf('=', startIndex) + 1;
            var endIndex = href.indexOf('&', startIndex);
            res = endIndex !== -1 ? href.substring(startIndex, endIndex) : href.substring(startIndex);
        }
        return res;
    }
}
